import request from '../util/request'

const baseUrl = process.env.NODE_ENV === 'production' ? '' : '/vehicleMap'

export function loadBlackListApi(pageNo,pageSize) {
  return request({
    url:baseUrl+ "/lcblacklist/listLcBlacklist",
    method: "get",
    params:{
      pageNo:pageNo,
      pageSize:pageSize
    }
  })
}

export function delBlackListApi(id){
    return request({
      url:baseUrl+"/lcblacklist/selective",
      method:"delete",
      data:{
        id : id
      }
    })
}

export function addBlackListApi(form){
  return request({
    url:baseUrl+"/lcblacklist",
    method:"post",
    data:form
  })
}


export function updateBlackListApi(form){
  return request({
    url:baseUrl+"/lcblacklist",
    method:"put",
    data:form
  })
}